package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author chengtaoxie
 * @since 2023-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编码
     */
    @TableId(value = "order_code", type = IdType.AUTO)
    private Integer orderCode;

    /**
     * 订单状态
     */
    private Integer orderStart;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 商家id
     */
    private Integer shopId;

    /**
     * 订单开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date orderStartTime;

    /**
     * 订单结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date orderEndTime;


}
